﻿@model IEnumerable<Round>

@{
    ViewBag.Title = "Runder";
}

<div class="page-header">
    <h1><span class="glyphicon glyphicon-list"></span> Runder</h1>
</div>
<p>
    @Html.ActionLink("Opret ny", "Create")
</p>

<table class="table table-hover">
    <thead>
        <tr>
            <th>
                Dato
            </th>
            <th>
                Bane navn
            </th>
            <th>
                Indberetter (vinder)
            </th>
        </tr>
    </thead>

    <tbody>
        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @item.DateEntry.ToLongDateString()
                </td>
                <td>
                    @Html.ActionLink(item.Course.Name, "Details", new { Id = item.Id })
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Editor.DisplayName)
                </td>
            </tr>
        }
    </tbody>
</table>

<p>@Html.ActionLink("Vis alle runder", "Index", new { show = "all" })</p>